package com.sykj.huxianlong.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sykj.huxianlong.entity.Withdrawal;
import com.sykj.huxianlong.entity.WithdrawalVo;

import java.util.List;


/**
 * @author zzy
 * @version 1.0
 * @date 2020/8/4 9:27
 * 提现服务
 */
public interface IWithdrawalService {

    /**
     * 提交请假申请
     * @param
     */
    void insertWithdrawal(Withdrawal Withdrawal);

    /**
     * 请假单列表查询
     * @param
     * @return
     */
    List<WithdrawalVo> queryWithdrawal();




    /**
     * 根据审批单号查询审批信息
     * @param exid
     * @return
     */
    Withdrawal queryWithdrawal(Long exid);

    /**
     * 更新审批单状态
     * (0:待提交 1:审核中 2:已废弃 3:已完成)
     * @param exid
     */
    void updateState(Long exid, Integer state);

    /**
     * 提交申请
     * 1.申请成功更改状态为已提交审核中
     * 2.执行工作流
     * @param exid
     */
    boolean submitApply(Long exid);

    /**
     * 删除审批单
     * @param exid
     */
    void delWithdrawal(Long exid);

}
